using Google.ProtocolBuffers;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SKBuiltinUchar_t : GeneratedMessageLite<SKBuiltinUchar_t, SKBuiltinUchar_t.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SKBuiltinUchar_t, SKBuiltinUchar_t.Builder>
		{
			private bool resultIsReadOnly;
			private SKBuiltinUchar_t result;
			protected override SKBuiltinUchar_t.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SKBuiltinUchar_t MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SKBuiltinUchar_t DefaultInstanceForType
			{
				get
				{
					return SKBuiltinUchar_t.DefaultInstance;
				}
			}
			public uint UiVal
			{
				get
				{
					return this.result.UiVal;
				}
				set
				{
					this.SetUiVal(value);
				}
			}
			public Builder()
			{
				this.result = SKBuiltinUchar_t.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SKBuiltinUchar_t cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SKBuiltinUchar_t PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SKBuiltinUchar_t other = this.result;
					this.result = new SKBuiltinUchar_t();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SKBuiltinUchar_t.Builder Clear()
			{
				this.result = SKBuiltinUchar_t.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SKBuiltinUchar_t.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SKBuiltinUchar_t.Builder(this.result);
				}
				return new SKBuiltinUchar_t.Builder().MergeFrom(this.result);
			}
			public override SKBuiltinUchar_t BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SKBuiltinUchar_t.Builder MergeFrom(IMessageLite other)
			{
				if (other is SKBuiltinUchar_t)
				{
					return this.MergeFrom((SKBuiltinUchar_t)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SKBuiltinUchar_t.Builder MergeFrom(SKBuiltinUchar_t other)
			{
				return this;
			}
			public override SKBuiltinUchar_t.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SKBuiltinUchar_t.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SKBuiltinUchar_t._sKBuiltinUcharTFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SKBuiltinUchar_t._sKBuiltinUcharTFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 8u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasUiVal = input.ReadUInt32(ref this.result.uiVal_);
					}
				}
				return this;
			}
			public SKBuiltinUchar_t.Builder SetUiVal(uint value)
			{
				this.PrepareBuilder();
				this.result.hasUiVal = true;
				this.result.uiVal_ = value;
				return this;
			}
			public SKBuiltinUchar_t.Builder ClearUiVal()
			{
				this.PrepareBuilder();
				this.result.hasUiVal = false;
				this.result.uiVal_ = 0u;
				return this;
			}
		}
		public const int UiValFieldNumber = 1;
		private static readonly SKBuiltinUchar_t defaultInstance;
		private static readonly string[] _sKBuiltinUcharTFieldNames;
		private static readonly uint[] _sKBuiltinUcharTFieldTags;
		private bool hasUiVal;
		private uint uiVal_;
		private int memoizedSerializedSize = -1;
		public static SKBuiltinUchar_t DefaultInstance
		{
			get
			{
				return SKBuiltinUchar_t.defaultInstance;
			}
		}
		public override SKBuiltinUchar_t DefaultInstanceForType
		{
			get
			{
				return SKBuiltinUchar_t.DefaultInstance;
			}
		}
		protected override SKBuiltinUchar_t ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint UiVal
		{
			get
			{
				return this.uiVal_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasUiVal;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasUiVal)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.UiVal);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SKBuiltinUchar_t()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] sKBuiltinUcharTFieldNames = SKBuiltinUchar_t._sKBuiltinUcharTFieldNames;
			if (this.hasUiVal)
			{
				output.WriteUInt32(1, sKBuiltinUcharTFieldNames[0], this.UiVal);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasUiVal)
			{
				num ^= this.uiVal_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SKBuiltinUchar_t sKBuiltinUchar_t = value as SKBuiltinUchar_t;
			return sKBuiltinUchar_t != null && (this.hasUiVal == sKBuiltinUchar_t.hasUiVal && (!this.hasUiVal || this.uiVal_.Equals(sKBuiltinUchar_t.uiVal_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SKBuiltinUchar_t, SKBuiltinUchar_t.Builder>.PrintField("uiVal", this.hasUiVal, this.uiVal_, writer);
		}
		public static SKBuiltinUchar_t ParseFrom(byte[] data)
		{
			return SKBuiltinUchar_t.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SKBuiltinUchar_t MakeReadOnly()
		{
			return this;
		}
		public static SKBuiltinUchar_t.Builder CreateBuilder()
		{
			return new SKBuiltinUchar_t.Builder();
		}
		public override SKBuiltinUchar_t.Builder ToBuilder()
		{
			return SKBuiltinUchar_t.CreateBuilder(this);
		}
		public override SKBuiltinUchar_t.Builder CreateBuilderForType()
		{
			return new SKBuiltinUchar_t.Builder();
		}
		public static SKBuiltinUchar_t.Builder CreateBuilder(SKBuiltinUchar_t prototype)
		{
			return new SKBuiltinUchar_t.Builder(prototype);
		}
		static SKBuiltinUchar_t()
		{
			SKBuiltinUchar_t.defaultInstance = new SKBuiltinUchar_t().MakeReadOnly();
			SKBuiltinUchar_t._sKBuiltinUcharTFieldNames = new string[]
			{
				"uiVal"
			};
			SKBuiltinUchar_t._sKBuiltinUcharTFieldTags = new uint[]
			{
				8u
			};
			object.ReferenceEquals(SKBuiltinUcharT.Descriptor, null);
		}
	}
}
